package ch7;
//战斗机
public class Warplane extends Plane {
    private int  warhead;

    public Warplane(String name, int weight, int height, int warhead) {
        super(name, weight, height);
        this.warhead = warhead;
    }

    public int getWarhead() {
        return warhead;
    }

    public void setWarhead(int warhead) {
        this.warhead = warhead;
    }
    public void launch(){
        System.out.println("发射导弹");
    }
    public void circleLow(){
        System.out.println("低空盘旋");
    }
}